<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
	<meta  charset="utf-8"/>
    <meta name="description" content="U联赛是中国大学生" />
    <meta name="Keyword" content="U联赛，大学生篮球联赛，大学篮球，篮球联赛" />
	<title>球队成绩</title>
	<link rel="stylesheet" type="text/css"
	href="../../../admin/site/common/css/global.css" />
    <script type="text/javascript"
	src="../../../admin/site/common/js/jquery-1.11.1.min.js"></script>

</head>
<body>
	<div class="page">
		<div class="toper">
		</div><!--顶部广告banner-->
		<div class="header" id="header">
			<input id="sessionWeixin" type="hidden" th:value="${session.indexWeixin}"/>
			<input id="sessionFans" type="hidden" th:value="${session.indexFans}"/>
			<input id="sessionUser" type="hidden" th:value="${session.user==null?'1':'2'}"/>
			<input id="sessionUserName" type="hidden" th:if="${session.user!=null &amp;&amp; session.user.userName != null}" th:value="${session.user.userName}"/>		
		</div><!--复合导航栏-->
		<div class="bodymain teamachievement">
			<div class="bdsharebuttonbox quicklink" id="fenxiang">
				<!-- 此处分享代码 -->
			</div>
			<div class="tc">
				<div class="full">
					<img class="tc-top" th:src="${team.logUrl}"/>
				</div>
				<div class="selnav">
					<div class="sellabel">球队
					</div>
					<div class="selone">
						<div class="sel" th:text="${teamName}"></div>
						<ul class="selul">
							<li th:each="team:${teamList}" th:text="${team.name}" th:value="${team.schoolId}" th:id="${team.id}" class="queryTeamId">
							</li>
						</ul>
					</div>
				</div>
				<div class="tc-left">
					<div class="info-block">
						<div class="info-title">球队简介
						</div>
						<p th:text="${team.introduction}"></p>
					</div>
					<ul class="tabnav tc-up">
						<li class="tab first teamRoster">球队名册</li>
						<li class="tab tabon teamScore">球队成绩</li>
						<li class="tabblank"></li>
					</ul>
					
					 <input type="hidden" id="team_Id" th:value="${teamId}" />
					<div class="tc-hight" th:text="${seasonName+'赛季排名'}"></div>
					<div class="point-nav">
						<div class="point-one">
							<div class="point-top">场均得分
							</div>
							<div class="point-down">
								<div class="point-dl"><span class="point-weight" th:text="${dataTask2.rownum+'名'}"></span></div>
								<div class="point-dr point-weight"><span th:text="${dataTask.averageScore+'分'}"></span></div>
							</div>
						</div>
						<div class="point-one">
							<div class="point-top">场均篮板
							</div>
							<div class="point-down">
								<div class="point-dl"><span class="point-weight" th:text="${dataTask3.rownum+'名'}"></span></div>
								<div class="point-dr point-weight"><span th:text="${dataTask.averageBackboard+'个'}"></span></div>
							</div>
						</div>
						<div class="point-one">
							<div class="point-top">场均助攻
							</div>
							<div class="point-down">
								<div class="point-dl"><span class="point-weight" th:text="${dataTask4.rownum+'名'}"></span></div>
								<div class="point-dr point-weight"><span th:text="${dataTask.averageAssistsAsts+'个'}"></span></div>
							</div>
						</div>
						<div class="point-one point-last">
							<div class="point-top">场均命中率
							</div>
							<div class="point-down">
								<div class="point-dl"><span class="point-weight" th:text="${dataTask5.rownum+'名'}"></span></div>
								<div class="point-dr point-weight"><span th:text="${dataTask.averageHitRate+'%'}"></span></div>
							</div>
						</div>
					</div>
					<div class="tc-hight" th:text="${seasonName+'赛季战绩'}"></div>
					<div class="tc-table-block full">
						<table class="tablenav nobortable">
							<thead>
								<tr>
									<td>日期</td>
									<td>轮数</td>
									<td>对手</td>
									<td>比分</td>
									<td>得分</td>
									<td>命中率</td>
									<td>篮板</td>
									<td>助攻</td>
								</tr>
							</thead>
							<tbody>
								<tr th:each="team,indexStat:${teamDates}">
									<td th:text="${team.matchDate}"></td>
									<td th:text="${'预选赛第'+indexStat.count+'轮'}"></td>
									<td th:text="${team.teamName}"></td>
									<td th:text="${team.totalScore+':'+team.totalLossScore}"></td>
									<td th:text="${team.totalScore+'分'}"></td>
									<td th:text="${team.shootBasketHitRate+'%'}"></td>
									<td th:text="${team.backboard+'个'}"></td>
									<td th:text="${team.assistsAsts+'个'}"></td>
								</tr>
								
							</tbody>
						</table>
					</div>
				</div>
				<div class="tc-right">
					<table class="tablenav">
						<caption>校内排名</caption>
						<thead>
							<tr>
								<td>排名</td><td>球队</td><td>胜负数</td>
							</tr>
						</thead>
						<tbody>
							<tr th:each="data:${schoolRankViews}">
								<td th:text="${data.id}"></td>
								<td th:text="${data.teamName}"></td>
								<td th:text="${data.matchWon+'W-'+data.matchLost+'L'}"></td>
							</tr>
							
						</tbody>
					</table>
					<div class="hightitle">
					</div>
					<div class="tc-rightadv">
						<a th:href="${footerAdvert.advertUrl}" target="_black" th:each="footerAdvert:${footerAdvertPage.result}">
						  <img th:src="${footerAdvert.advertImg}" />
						</a>
					</div>
				</div>
			</div>
			<input th:value="${team2}" id="school-id" type="hidden"/>
			<div class="mainbottomblank">
			</div>
		</div><!--q球队成绩页内容-->
		<div class="footer  unblanfoot" id="footer" th:utext="${session.indexFooter}">
			
		</div><!--页面底部-->	
	</div>
</body>
	<script type="text/javascript" src="../../../admin/site/common/js/header.js"></script>
	<script type="text/javascript">
	$(function(){
		$('.selul li').hover(function(){$(this).addClass('hovon')},function(){$(this).removeClass('hovon')});
		$('.selul li').on('click',function(){$(this).parent().slideToggle('fast').parent().find('.sel').text($(this).text())});
		$('.sel').on('click',function(){$(this).next().slideToggle('fast')});
		
		 $("#nav-team").attr("class","nav-clickon");
		 
		 $(".queryTeamId").click(function(e){
				var teamId=e.currentTarget.id;
				var schoolId=$(this).val();
				window.location.href = "/teamDate/queryTeamScore.html?schoolId="+schoolId+decodeURIComponent("%26")+"teamId="+teamId;
				
		});
		 $(".teamRoster").click(function(){
			 var id= $("#team_Id").val();
			 var schoolId=$("#school-id").val();
			 window.location.href = "/teamDate/queryTeamRoster.html?teamId="+id+decodeURIComponent("%26")+"schoolId="+schoolId;
		 });
		 
		 $(".teamScore").click(function(){
			 var id= $("#team_Id").val();
			 var schoolId=$("#school-id").val();
			 window.location.href = "/teamDate/queryTeamScore.html?teamId="+id+decodeURIComponent("%26")+"schoolId="+schoolId;
		 });
	});
	</script>
</html>
